#include <iostream>
#include <stdlib.h>

unsigned short to[(int)1e5 + 5] = {0};
int main(){
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	int n;
	std::cin >> n;
	for(int i = 0; i < n; i++){
		int tmp;
		std::cin >> tmp;
		to[tmp] ++;
	}
	int t = 0;
	for(int i = 0; i < (int)1e5 + 5; i++){
		t -= to[i];
		if(t < 0){
			t = 0;
		}
		t += to[i];
	}
	std::cout << t;
	return 0;
}
